package com.blog.exception;

/**
 * @author 任浩
 * @version 1.0
 */
public class ServiceException extends RuntimeException{
    protected Integer code = 500;
    protected String msg;

    public ServiceException(){

    }

    public ServiceException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public ServiceException(Integer code,String msg){
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
